﻿
 @Html.Partial("_header")

@{
    var HomeDir = System.Configuration.ConfigurationManager.AppSettings["HomeDirectory"].ToString(); 
}

<body id="front-page"> @* used for form top margin *@

   <div class="container_16" id="green-it">

            <div class="full-width" id="black-bar">

	        <div id="black-filler">
		        <a href="@HomeDir/Home"><img src="@Url.Content("~/Content/i/image-wiwi-logo-black-bar.png")" width="149" height="24" alt="WiWi ~ Where your wants come first" /></a>
		            
            @if (Request.IsAuthenticated)
            {
       <nav>
   	    <ul id="logged-in">				
				 @*   <li><a href="#" id="log-in">@Html.Partial("_LogOnPartial")</a></li> // don't really need *@
                        <li>@Html.ActionLink("Log Off", "LogOff", "Account")</li>
                        <li>@Html.ActionLink("Settings", "Editprofile", "Home")</li>
				 @*   <li>@Html.ActionLink("My Wants", "Profile", "Home")</li> *@
				    <li>@Html.ActionLink("My Searches", "MySearches", "Want")</li>
				 @*   <li>@Html.ActionLink("My Dealing", "Index", "Dealing")</li> *@       
                    <li>@Html.ActionLink("My Profile", "Profile", "Home")</li>
                 
                    <li>@Html.ActionLink("Home", "../Home")</li>
			    </ul>
		</nav>
            }
            else
            {
            <a href="@HomeDir/Account/Logon" id="log-in">Have an Account? <span>Sign In</span></a>
            }
	        </div>
        </div>
         <div class="grid_10" id="wiwi-search">
            
            <img src="@Url.Content("~/Content/i/image-wiwi-logo-front-page.png")" width="341" height="130" alt="WiWi ~ What I Want Is" />
	        
            @using (Html.BeginForm("Search", "Want", FormMethod.Post, new { id = "wiwi-form-search" }))
            {
		        <input name="main-search" placeholder="What I Want Is .. " id="main-search" class="fix" />  
		        <input type="submit" value="Search" id="main-search-button" />
            }
        </div>	
        @if (!Request.IsAuthenticated)
        {
            <div class="grid_6 form-bg" id="wiwi-sign-up">
            <h5>New to WiWi? <span>Join today!</span></h5>
                
                @{
            Wiwi.ViewModels.RegistrationTop mod = new Wiwi.ViewModels.RegistrationTop();
            @Html.Partial("~/Views/Home/Registration.cshtml", mod);
                 }
            </div>
        }
        <div class="clear"></div>

	<div class="clear"></div>
   
          @RenderBody()

          @Html.Partial("_footer")  
